package at.fhooe.engine.physics.forces;

public class GravityForce extends Force {

	private double m_gravity;
	
	public GravityForce() {
		m_gravity = 9.81;
	}
	
	public GravityForce(double gravity) {
		m_gravity = gravity;
	}
	
	@Override
	public double getAccelerationX(double time, double position, double velocity, double angularPosition) {
		return 0;
	}

	@Override
	public double getAccelerationY(double time, double position, double velocity, double angularPosition) {
		return m_gravity;
	}
	
	@Override
	public double getAngularAcceleration(double time, double position, double velocity, double angularPosition) {
		return 0;
	}
}
